import request from '@/utils/request'
export default {
    //1 生成统计数据
    addgongcheng(gongcheng) {
        return request({
            url: '/gcservice/gongcheng/creat',
            method: 'post',
            data:gongcheng
          })
    },
     //1 土方直立壁开挖高度计算
     kaiwa(tufangkaiwa) {
        return request({
            url: '/gcservice/gongcheng/tufang',
            method: 'post',
            data:tufangkaiwa
          })
    },

    //1 新浇混凝土对模板的侧压力标准值G 正常使用极限状态设计值S正
    getMb(muban) {
        return request({
            url: '/gcservice/gongcheng/muban',
            method: 'post',
            data:muban
          })
    },

    //1 面板验算
    getQu(qiangdu) {
        return request({
            url: '/gcservice/gongcheng/qiangdu',
            method: 'post',
            data:qiangdu
          })
    },

    //查看所有数据
    getallPage(current,limit){
        return request({
            url: `/gcservice/gongcheng/gongchengpage/${current}/${limit}`,
            method: 'post', 
                   
          })
    },

    //1 简支梁设计
    getJZL(ql) {
        return request({
            url: '/gcservice/gongcheng/jianzhiliang',
            method: 'post',
            data:ql
          })
    },
    //根据id删除记录
    deleteId(id){
        return request({
            url: `/gcservice/gongcheng/${id}`,
            method: 'delete',
            
          })
    },
    //根据id查看记录
    showId(id){
        return request({
            url: `/gcservice/gongcheng/showId/${id}`,
            method: 'post',
            data:id
          })
    },
    //更新
    update(gongcheng){
        return request({
            url: `/gcservice/gongcheng/update`,
            method: 'post',
            data:gongcheng
          })
    }

}